<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Template Units For Numerical Applications</title>
<link href="TUNAstyles.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<style type="text/css">

.cabeza_cell {
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;
  border-top: 1px solid #000000;
  font-family: Arial,Helvetica,sans-serif;
  font-size: 11pt;
  background-color: #ffffff;
  font-weight: lighter;
  color: #000000;
  text-decoration: none;
}
</style>

</head><body>
<div>
<table align="center" width="640" border="0" cellspacing="2" cellpadding="5" class="border">
<tr>
 <td class="cabeza_cell"> 

  <font style="font-family: helvetica; color: #000000;" size=4>
    <font style="font-family: helvetica; color: #336699; font-weight=bold" size=5>TUNA</font> :
    <font style="font-family: helvetica; color: #336699; font-weight=bold" size=5>T</font>emplate
    <font style="font-family: helvetica; color: #336699; font-weight=bold" size=5>U</font>nits for
    <font style="font-family: helvetica; color: #336699; font-weight=bold" size=5>N</font>umerical 
    <font style="font-family: helvetica; color: #336699; font-weight=bold" size=5>A</font>pplications
 </font><br>
  
</td>
</tr>

<tr>
<td class="cabeza_cell">
 <span style="font-family: helvetica; color: #336699;">
 Documentation Ver 1.0.0 August 2011 by
 <a href="http://mmc.geofisica.unam.mx/luiggi">Luis M. de la Cruz</a> <br>
 <a href="http://mmc.geofisica.unam.mx"> GMMC </a> -
 <a href="http://www.geofisica.unam.mx/recnat/"> Depto. de Recursos Naturales </a> -
 <a href="http://www.geofisica.unam.mx"> Instituto de Geof&iacute;sica </a> -
 <a href="http://www.unam.mx"> UNAM </a><br>
 </span>
 </td>

</tr>

</table>
</div>
<br>
<!-- Generated by Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>Tuna</b>      </li>
      <li class="navelem"><a class="el" href="classTuna_1_1TwoPhaseEquation.html">TwoPhaseEquation</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Tuna::TwoPhaseEquation&lt; Tscheme &gt; Class Template Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Tuna::TwoPhaseEquation" --><!-- doxytag: inherits="GeneralEquation&lt; TwoPhaseEquation&lt; Tscheme &gt; &gt;" -->
<p>This class derives from <a class="el" href="classTuna_1_1GeneralEquation.html" title="General class for equations.">GeneralEquation</a> through B &amp; N trick.  
 <a href="classTuna_1_1TwoPhaseEquation.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Tuna::TwoPhaseEquation&lt; Tscheme &gt;:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classTuna_1_1TwoPhaseEquation.png" usemap="#Tuna::TwoPhaseEquation&lt; Tscheme &gt;_map" alt=""/>
  <map id="Tuna::TwoPhaseEquation&lt; Tscheme &gt;_map" name="Tuna::TwoPhaseEquation&lt; Tscheme &gt;_map">
<area href="classTuna_1_1GeneralEquation.html" alt="Tuna::GeneralEquation&lt; TwoPhaseEquation&lt; Tscheme &gt; &gt;" shape="rect" coords="0,0,343,24"/>
</map>
 </div></div>

<p><a href="classTuna_1_1TwoPhaseEquation-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef Typeinfo&lt; Tscheme &gt;::<a class="el" href="classTuna_1_1TwoPhaseEquation.html#a5491383644d06c7b9fa6a96e4bac3a7d">prec_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTuna_1_1TwoPhaseEquation.html#a5491383644d06c7b9fa6a96e4bac3a7d">prec_t</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Precision used for the numerical operations.  <a href="#a5491383644d06c7b9fa6a96e4bac3a7d"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTuna_1_1TwoPhaseEquation.html#af625c1598e648acaf3b3c195e2466a53">TwoPhaseEquation</a> (ScalarField &amp;phi_global, DiagMat &amp;matrix, ScalarField &amp;b, const floatTinyArray_t &amp;deltas)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Main constructor.  <a href="#af625c1598e648acaf3b3c195e2466a53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Tscheme &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTuna_1_1TwoPhaseEquation.html#a3cfd0c50bb14834bdce42753e4a09668">asDerived</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">The Curiously Recursive Template Pattern (CRTP) is used.  <a href="#a3cfd0c50bb14834bdce42753e4a09668"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="affc0019eefe19c53b8c2a0dd6f1fdab1"></a><!-- doxytag: member="Tuna::TwoPhaseEquation::calcCoefficients" ref="affc0019eefe19c53b8c2a0dd6f1fdab1" args="()" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTuna_1_1TwoPhaseEquation.html#affc0019eefe19c53b8c2a0dd6f1fdab1">calcCoefficients</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Call to the functions defined in the derived classes. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename Tscheme&gt;<br/>
class Tuna::TwoPhaseEquation&lt; Tscheme &gt;</h3>

<p>In this class some particular variables and methods for scalar PDE's are defined.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Luis M. de la Cruz [ Mon May 4 16:20:22 CDT 2009 ] </dd></dl>

<p>Definition at line <a class="el" href="TwoPhaseEquation_8hpp_source.html#l00047">47</a> of file <a class="el" href="TwoPhaseEquation_8hpp_source.html">TwoPhaseEquation.hpp</a>.</p>
</div><hr/><h2>Member Typedef Documentation</h2>
<a class="anchor" id="a5491383644d06c7b9fa6a96e4bac3a7d"></a><!-- doxytag: member="Tuna::TwoPhaseEquation::prec_t" ref="a5491383644d06c7b9fa6a96e4bac3a7d" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Tscheme&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Typeinfo&lt;Tscheme&gt;::<a class="el" href="classTuna_1_1TwoPhaseEquation.html#a5491383644d06c7b9fa6a96e4bac3a7d">prec_t</a> <a class="el" href="classTuna_1_1TwoPhaseEquation.html">Tuna::TwoPhaseEquation</a>&lt; Tscheme &gt;::<a class="el" href="classTuna_1_1TwoPhaseEquation.html#a5491383644d06c7b9fa6a96e4bac3a7d">prec_t</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reimplemented from <a class="el" href="classTuna_1_1GeneralEquation.html#a39e7293ae9e10a2fc90f422da1d28ecd">Tuna::GeneralEquation&lt; TwoPhaseEquation&lt; Tscheme &gt; &gt;</a>.</p>

<p>Definition at line <a class="el" href="TwoPhaseEquation_8hpp_source.html#l00052">52</a> of file <a class="el" href="TwoPhaseEquation_8hpp_source.html">TwoPhaseEquation.hpp</a>.</p>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af625c1598e648acaf3b3c195e2466a53"></a><!-- doxytag: member="Tuna::TwoPhaseEquation::TwoPhaseEquation" ref="af625c1598e648acaf3b3c195e2466a53" args="(ScalarField &amp;phi_global, DiagMat &amp;matrix, ScalarField &amp;b, const floatTinyArray_t &amp;deltas)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Tscheme&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classTuna_1_1TwoPhaseEquation.html">Tuna::TwoPhaseEquation</a>&lt; Tscheme &gt;::<a class="el" href="classTuna_1_1TwoPhaseEquation.html">TwoPhaseEquation</a> </td>
          <td>(</td>
          <td class="paramtype">ScalarField &amp;&#160;</td>
          <td class="paramname"><em>phi_global</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">DiagMat &amp;&#160;</td>
          <td class="paramname"><em>matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ScalarField &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const floatTinyArray_t &amp;&#160;</td>
          <td class="paramname"><em>deltas</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The scalarfield <code>phi_0</code> defined here is a reference to a global field variable. Here <code>phi_0</code> is used as an old value of that field variable. </p>

<p>Definition at line <a class="el" href="TwoPhaseEquation_8hpp_source.html#l00066">66</a> of file <a class="el" href="TwoPhaseEquation_8hpp_source.html">TwoPhaseEquation.hpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a3cfd0c50bb14834bdce42753e4a09668"></a><!-- doxytag: member="Tuna::TwoPhaseEquation::asDerived" ref="a3cfd0c50bb14834bdce42753e4a09668" args="()" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Tscheme&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">Tscheme&amp; <a class="el" href="classTuna_1_1TwoPhaseEquation.html">Tuna::TwoPhaseEquation</a>&lt; Tscheme &gt;::asDerived </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p><a class="el" href="classTuna_1_1TwoPhaseEquation.html#a3cfd0c50bb14834bdce42753e4a09668" title="The Curiously Recursive Template Pattern (CRTP) is used.">asDerived()</a> gets an returns a reference to the derived class. </p>

<p>Reimplemented from <a class="el" href="classTuna_1_1GeneralEquation.html#aac63dc10324dcfdd7aaabdc63ec0c67f">Tuna::GeneralEquation&lt; TwoPhaseEquation&lt; Tscheme &gt; &gt;</a>.</p>

<p>Definition at line <a class="el" href="TwoPhaseEquation_8hpp_source.html#l00083">83</a> of file <a class="el" href="TwoPhaseEquation_8hpp_source.html">TwoPhaseEquation.hpp</a>.</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr size="1">
<div align="center">
Last modification: Sun Aug 28 09:57:21 CDT 2011
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&copy; 2011 LMCS-UNAM
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Generated by <a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="top" border="0" height="25"></a> 1.6.1 </div>

